(abort "You need AmiTCP 3.0 or higher to use this FTP server. Sorry.")
)
; Show welcome message
(welcome)
; Copy the FTP server
(copyfiles
(prompt "Copy FTP daemon?")
(help "The FTP daemon is the heart of the FTP server, if you don't copy this you won't be able to use the server.")
(source "bin/ftpd")
(dest "AmiTCP:serv")
(confirm)
)
(complete 30)
; Copy utilities
(copyfiles
(prompt "Copy ftpshut utility?")
(help "The ftpshut command is used to shutdown the FTP server.")
(source "bin/ftpshut")
(dest "AmiTCP:bin")
(confirm)
)
(complete 60)
(copyfiles
(prompt "Copy ftpcount utility?")
(help "The ftpcount command is used to count the number of users that are currently using the FTP server.")
(source "bin/ftpcount")
(dest "AmiTCP:bin")
(confirm)
)
(complete 80)
; Copy configuration files
(if (NOT (exists "AmiTCP:db/ftpaccess" (noreq)))
(copyfiles
(prompt "Copy example configuration files?")
(help "This are only example configuration files. You will need to change them. See the wu-ftp.guide on how to do this.")
(source "examples")
(dest "AmiTCP:db")
(all)
(confirm)
)
)
(complete 100)
(exit "You should now change the file AmiTCP:db/ftpaccess and add some lines to your AmiTCP:db/inetd.conf file. You should also setup your ftp accounts. For more information see the supplied wu-ftp.guide documentation file.")